#include <iostream>
using namespace std;

const int MAX = 3;

int main() {
    int var[MAX] = {10,100,200};
    int *ptr;

    ptr = var;
    for (int i = 0; i < MAX; i++)
    {
        cout << "var[" << i << "]的内存地址为:" << ptr << endl;
        cout << "var["<< i << "]的值为:" << *ptr << endl;
        ptr++;
    }
    return 0;  
}